﻿@model IEnumerable<WebUI.Models.QizSubject>
@{
    var recuperID = Request["RecuperID"].ToString();
}
@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId = "OnLoadingSpan",
    UpdateTargetId = "dialogbox",
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "Post",
    OnSuccess = "alert('保存成功，请继续其他操作。')",
    OnFailure = "OnSiteError"
}))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>随访单列表</legend>
        <ul>
            @foreach (var subSes in Model)
            {
                <li id="subTab@(subSes.ID)">
                <a href='@(Url.Action("QizSessionEdit", new { SubjectID = subSes.ID, RecuperID = recuperID }))' target="_blank">@subSes.Title</a>
                </li>
            }
        </ul>
    </fieldset>
}